<%@ page contentType="text/html;charset=utf-8" 
	import="org.springframework.web.context.*,com.zh.UserBean,org.springframework.web.context.support.*,com.zh.Util,java.util.*"
%>
<%@page import="com.zh.Message"%>
<html>
  <head>
    <title>修改公告信息</title>
     <script language="JavaScript" src="script/com.js"></script>
     <script language="JavaScript">
       function check(){
       	 
       	 document.all.mf.submit();
       }
     </script>
     <style>
      table{
	         border-collapse:collapse;
	       }
	       table,th,td {
	       
	       border:1px solid black;
	       }
	       .mima {
	       width:100%;
	       height:40px;
	       background-color:#ADD8E6;
	       }
	       .zi {
	       font-size:20px;
	       position:relative;
	       left:45%;
	       margin-left:-30px;
	       line-height:40px;
	       }
	</style>
  </head>
  <body >
 	<jsp:useBean id="userBean" class="com.zh.UserBean" scope="session"/>
	<div class="mima"><font class="zi">修改公告信息</font></div>
	<% 
		Message M = (Message)request.getAttribute("object");
	 %>
	<form action="SuperServlet" method="post" id="mf">
	<table  width="80%" border="1" style="margin-left:150px;margin-top:15px">	
	  <tr >
	    <td align="center" height="30px">公告内容:</td>
	    <td><input name="message" id="message" value="<%= M.getMessage() %>"/></td>
	  </tr>
	  
	  <tr >
	  	<td align="center"height="30px">公告时间:</td>
	  	<td><input  name="mestime" id="mestime" 
	  		value="<%= M.getMestime() %>"/></td>
	  </tr>	 
	   <tr>
		   <td  colspan="2" height="30px">
		   <div  style="position:relative;left:35%;">
		   <input type="button" value="提交" id="xg" onclick="JavaScript:check()" style="cursor:hand"/>
		   <input type="button" value="重置" id="cz" onclick="JavaScript:document.all.mf.reset()"  style="cursor:hand">
		   </div>
		   </td>
		 </tr> 
	</table>
	<input type="hidden" name="action" value="mdmessage"/>
	<input type="hidden" name="mesid" value="<%= M.getMesid() %>"/>
	
	</form>
  </body>
</Html>